//
//  Equipment.h
//  GBKHOME
//
//  Created by XMYY-19 on 2017/9/4.
//
//

#import <Foundation/Foundation.h>

@interface NewEquipment : NSObject
@property (retain) NSString *name;//设备名称
@property (retain) NSString *switchId;//设备地址码
@property (retain) NSString *tagName;//区域
@property (retain) NSString *regulate;//是否可调节：0，不可，1可调
@property (retain) NSString *type;//电器设备类型
@property (retain) NSString *state;//设置当前开关状态，kStateOn,kStateOff

@property (assign)NSInteger protectId;//布防id，用于显示名称

@property (retain) NSMutableArray *openEques;//场景中使用，将打开的设备


@property (assign) id target;
@property (assign) SEL selector;

/**
 *  区域
 */
@property (retain) NSString *displayName;//设备名称
@property (retain) NSString *orderId;//设备ID
@property (retain) NSString *relevanceUserName;//账号名
@property (retain) NSString *relevanceUserPass;//账号密码


-(instancetype)initWithEquipmentDict:(NSDictionary *)dict;
+(instancetype)EquipmentDict:(NSDictionary *)dict;
@end
